<include file="public@header" />
<link href="__STATIC__/css/layui.css" rel="stylesheet" />
<link href="__STATIC__/css/admin.css" rel="stylesheet" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<div class="row">
            <div class="layui-card-body">
              	<div class="layui-carousel layadmin-carousel layadmin-backlog" lay-anim="" lay-indicator="inside" lay-arrow="none" style="width: 100%; height: 80px!important;">
	                <div carousel-item="">
	                  	<ul class="layui-row layui-col-space10 layui-this">
	                    	<li class="layui-col-xs3">
	                      		<a href="javascript:;" class="layadmin-backlog-body">
	                        		<h3>总充值金额</h3>
	                        		<p><cite>{$total_amount}</cite>USDT</p>
	                      		</a>
	                    	</li>
	                    	<li class="layui-col-xs3">
	                      		<a href="javascript:;" class="layadmin-backlog-body">
	                        		<h3>单笔充值最大金额</h3>
	                        		<p><cite>{$max_amount}</cite>USDT</p>
	                      		</a>
	                    	</li>
	                    	<li class="layui-col-xs3">
	                      		<a href="javascript:;" class="layadmin-backlog-body">
	                        		<h3>今日充值金额</h3>
	                        		<p><cite>{$today_amount}</cite>USDT</p>
	                      		</a>
	                    	</li>
	                    	<li class="layui-col-xs3">
		                      	<a href="javascript:;" class="layadmin-backlog-body">
		                        	<h3>本月充值金额</h3>
		                        	<p><cite>{$month_amount}</cite>USDT</p>
		                      	</a>
		                    </li>
	                  	</ul>
	                </div>
            	</div>
          	</div>
        </div>
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:url('chongzhi/index')}">充值列表</a></li>
		</ul>
        <form class="well form-inline margin-top-20" method="get" action="{:url('chongzhi/index')}">
            关键词:
            <input type="text" class="form-control" name="keyword" style="width: 200px;" value="{:input('request.keyword/s','')}" placeholder="手机|邮箱">
            发送地址:
            <input type="text" class="form-control" name="from" style="width: 200px;" value="{:input('request.from/s','')}" placeholder="发送地址">
            接收地址:
            <input type="text" class="form-control" name="to" style="width: 200px;" value="{:input('request.to/s','')}" placeholder="接收地址">
            交易时间:
            <input type="text" class="form-control js-bootstrap-datetime" name="start_time" style="width: 200px;" value="{:input('request.start_time/s','')}" placeholder="开始时间" autocomplete="off">
            -
            <input type="text" class="form-control js-bootstrap-datetime" name="end_time" style="width: 200px;" value="{:input('request.end_time/s','')}" placeholder="结束时间" autocomplete="off">
            <input type="submit" class="btn btn-primary" value="搜索" />
            <a class="btn btn-danger" href="{:url('chongzhi/index')}">清空</a>
            <a class="btn btn-success" href="{:url('chongzhi/export',array('keyword'=>input('keyword'),'from'=>input('from'),'to'=>input('to'),'start_time'=>input('start_time'),'end_time'=>input('end_time')))}" target="_blank">导出</a>
        </form>
		<table class="table table-hover table-bordered">
			<thead>
				<tr>
					<th width="50">ID</th>
					<th>手机</th>
					<th>邮箱</th>
					<th>币种</th>
					<th>发送地址</th>
					<th>接收地址</th>
					<th>交易数量</th>
					<th>交易时间</th>
					<th>交易hash值</th>
					<th>交易状态</th>
					<th width="140">{:lang('ACTIONS')}</th>
				</tr>
			</thead>
			<tbody>
				<php>$status_text = ['0'=>'待审核','1'=>'通过','2'=>'未通过'];$state_text = ['0'=>'交易进行中','1'=>'交易成功','2'=>'交易失败'];</php>
				<foreach name="list" item="vo">
				<tr>
					<td>{$vo.id}</td>
					<td>{$vo.mobile}</td>
					<td>{$vo.user_email}</td>
					<td>{$vo.symbol}</td>
					<td>{$vo.from}</td>
					<td>{$vo.to}</td>
					<td>{:floatval($vo.number)}</td>
					<td>{:date('Y-m-d H:i',$vo.create_time)}</td>
					<td>{$vo.hash}</td>
					<td><if $vo.state>{$state_text[$vo.state]}</if></td>
					<td>
						<a class="btn btn-xs btn-primary detail" href="javascript:parent.openIframeLayer('{:url('chongzhi/detail',array('id'=>$vo['id']))}','交易详情',{area:['500px','400px']});">详情</a>
					</td>
				</tr>
				</foreach>
			</tbody>
		</table>
		<div class="pagination">{$page}</div>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>